package com.sq.common.utils.user;

import com.sq.common.utils.StringUtils;

import java.util.HashSet;
import java.util.Set;

/**
 * @Author Li sir
 * @Date 2024/9/30
 */
public class UserUtil {

    public  static  final  Set<String> userSet =  new HashSet<String>();


    static {
        userSet.add("admin");
        userSet.add("Admin");
        userSet.add("null");
        userSet.add("guest");
        userSet.add("Guest");
        userSet.add("");
    }

    public static boolean isOkUserName(String userName){

        if (StringUtils.isBlank(userName)){
            return false;
        }

        if (userSet.contains(userName)){
            return false;
        }

        return true;

    }

}
